package com.shop.pojo;

public class Good {
    private int sid;
    private String sname;
    private int number;
    private double price;
    private int ppid;
    private int ffid;
    private String simgurl;

    public Good(){}
    public Good(int sid, String sname, int number, double price, int ppid, int ffid, String simgurl) {
        this.sid = sid;
        this.sname = sname;
        this.number = number;
        this.price = price;
        this.ppid = ppid;
        this.ffid = ffid;
        this.simgurl = simgurl;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPpid() {
        return ppid;
    }

    public void setPpid(int ppid) {
        this.ppid = ppid;
    }

    public int getFfid() {
        return ffid;
    }

    public void setFfid(int ffid) {
        this.ffid = ffid;
    }

    public String getSimgurl() {
        return simgurl;
    }

    public void setSimgurl(String simgurl) {
        this.simgurl = simgurl;
    }

    @Override
    public String toString() {
        return "Good{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", number=" + number +
                ", price=" + price +
                ", pid=" + ppid +
                ", fid=" + ffid +
                ", simgurl='" + simgurl + '\'' +
                '}';
    }
}
